package com.xmut.databean;

import com.sirdc.modules.sys.entity.SysUser;
import com.xmut.entity.Comment;

/**
 *
 */
public class CommentListDatabean extends Comment{

    private CommentListDatabean databean;
    private SysUser sysUser;



    public CommentListDatabean(CommentListDatabean databean, SysUser sysUser,Comment comment) {
        this.databean = databean;
        init(sysUser,comment);

    }

    public CommentListDatabean(SysUser sysUser, Comment comment) {
        init(sysUser,comment);
    }

    public CommentListDatabean() {

    }

    private void init(SysUser sysUser,Comment comment){
        this.sysUser = sysUser;
        setSysId(comment.getSysId());
        setComment(comment.getComment());
        setTopicId(comment.getTopicId());
        setUserId(comment.getUserId());
        setFloorNum(comment.getFloorNum());
        setCreateDate(comment.getCreateDate());
        setCreateTime(comment.getCreateTime());
    }

    public CommentListDatabean getDatabean() {
        return databean;
    }

    public void setDatabean(CommentListDatabean databean) {
        this.databean = databean;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }
}
